// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import http from "@/util/requestHttp";
import 'element-ui/lib/theme-chalk/index.css';

Vue.prototype.$http = http //将http绑定到vue的原型上

Vue.use(ElementUI);

Vue.prototype.$axios = axios.create({
  headers: { 'Content-Type': 'application/json;charset=utf-8' },
  withCredentials: true,
}
);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
